#include <benchmark/benchmark.h>
#include "errno.h"
#include "util.h"

using namespace std;

static void Bm_function_Strerror(benchmark::State &state)
{
    int e = 2;
    for (auto _ : state)
    {
        benchmark::DoNotOptimize(strerror(e));
    }

    // 打印在迭代次数里每秒处理的字节数
    state.SetItemsProcessed(state.iterations());
}

MUSL_BENCHMARK(Bm_function_Strerror);